package com.shop.pojo;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class Log {
    private int id;
    private String username;
    private String logintime;
    private boolean status;
    private String message;

    public Log(){}

    public Log(int id, String username, String logintime, boolean status, String message) {
        this.id = id;
        this.username = username;
        this.logintime = logintime;
        this.status = status;
        this.message = message;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLogintime() {
        return logintime;
    }

    public void setLogintime(String logintime) {
        this.logintime = logintime;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", logintime='" + logintime + '\'' +
                ", status=" + status +
                ", message='" + message + '\'' +
                '}';
    }
}
